cmake_minimum_required(VERSION 3.25)
project(Logger)

set(CMAKE_CXX_STANDARD 23)

file(GLOB PROJECT_SOURCES
        main.cpp
        Log/Source/Logger.cpp
        Log/Header/Logger.h
        Log/Header/Behavior/Write/Write.h
        Log/Source/Behavior/Write/Impl/WriteToConsole.cpp
        Log/Header/Behavior/Write/Impl/WriteToConsole.h
        Log/Source/Behavior/Write/Impl/WriteToFile.cpp
        Log/Header/Behavior/Write/Impl/WriteToFile.h
        Log/Source/Platform/Helper/LogHelper.cpp
        Log/Header/Platform/Helper/LogHelper.h
        Log/Header/Component/Time.h
        Log/Header/Component/Log.h
        )

add_executable(Logger ${PROJECT_SOURCES})

#编译成静态库或者动态库
#add_library(lxlog_static STATIC ${PROJECT_SOURCES})
#add_library(lxlog_shared SHARED ${PROJECT_SOURCES})

#重置编译成果名称
#set_target_properties(lxlog_shared PROPERTIES OUTPUT_NAME "lxlog")
#set_target_properties(lxlog_static PROPERTIES OUTPUT_NAME "lxlog")


